projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78725e4
)
Revert "Remove leftover from previous electric-layout-rules API"
author
João Távora
<joaotavora@gmail.com>
Fri, 18 Jan 2019 22:26:29 +0000
(22:26 +0000)
committer
João Távora
<joaotavora@gmail.com>
Fri, 18 Jan 2019 22:29:02 +0000
(22:29 +0000)
This is a backward-incompatible change, and removing it isn't really
necessary.
This reverts commit
942dad2b519cabddf6caea7641517507dc06944b
.
lisp/electric.el
patch
|
blob
|
history
diff --git
a/lisp/electric.el
b/lisp/electric.el
index e2f9f7074369ff3e8f71c4d75e7600e3d93a3f53..f2061c2f52cb1fbc236bd3ca736fd7f398caa5f3 100644
(file)
--- a/
lisp/electric.el
+++ b/
lisp/electric.el
@@
-414,6
+414,7
@@
If multiple rules match, only first one is executed.")
;; Not in a string or comment.
(not (nth 8 (save-excursion (syntax-ppss pos)))))
(goto-char pos)
+ (when (functionp rule) (setq rule (funcall rule)))
(dolist (sym (if (symbolp rule) (list rule) rule))
(let* ((nl-after
(lambda ()